package com.xw.model;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import javax.persistence.*;

@Getter
@Setter
@Table(name = "videos_item")
public class VideosItem {
    /**
     * id
     */
    @Id
    @Column(name = "video_item_id")
    private String videoItemId;

    /**
     * 视频名称
     */
    @Column(name = "video_item_name")
    private String videoItemName;

    /**
     * 视频大小 时长
     */
    @Column(name = "video_item_size")
    private Double videoItemSize;

    /**
     * 视频链接
     */
    @Column(name = "video_url")
    private String videoUrl;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * userId
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 关联 课程id
     */
    @Column(name = "video_id")
    private String videoId;

    @Column(name = "create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Column(name = "update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 0.未审核 1.通过 2.拒绝
     */
    @Column(name = "video_status")
    private Integer videoStatus;

    /**
     * 审核不通过原因
     */
    private String noPassReason;

    /**
     * 0.取消置顶 1.置顶
     */
    @Column(name = "is_top")
    private Integer isTop;

    /**
     *
     * 学习人数
     */
    @Column(name = "study_count")
    private Integer studyCount;
    @Transient
    private String videoName;
}